//package rwlivbk.common;
//
//import org.springframework.http.HttpStatus;
//import org.springframework.web.bind.annotation.ControllerAdvice;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//import org.springframework.web.bind.annotation.ResponseStatus;
//
//@ControllerAdvice
//public class GlobalExceptionHandler {
//
//    @ExceptionHandler(Exception.class)
//    @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
//    public CommonResult<?> handleException(Exception exception) {
//        return CommonResult.error(HttpStatus.INTERNAL_SERVER_ERROR.value(), exception.getMessage());
//    }
//
//    // You can add more specific exception handlers here if needed
//}
